﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.IO;

namespace IReklamo.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var repository = new ComplaintRepository();
            return View(new HomePageModel { 
                LatestComplaints = repository.GetLatestComplaints(),
                SponsoredComplaints = repository.GetLatestSponsoredComplaints()
            });

        }

        
        public ActionResult TestFileUpload()
        {
            return View();
        }

    }
}
